package while_and_if;
public class While {
    
    static boolean condition() {
        double app =0.00;
        app = Math.random();
        System.out.println("\n" + app + "@@@ \n");
        boolean result = app < 0.85;
        System.out.print(result + ", ");
        return result;
}
public static void main(String[] args) {
    while(condition())
    System.out.println("Sono dentro While");
    System.out.println("Sono dentro dal While");
  }
}
